home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Shell Folders.xpl < prev    next >
Text File  |  1999-07-15  |  2KB  |  73 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Data Folders"
  5. "NAME"="General Folders"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.50"
  8. "TEXT 1"="Personal Files"
  9. "TEXT 2"="Program Data"
  10. "TEXT 3"="IE Favorites"
  11. "TEXT 4"="IE Downloads"
  12. "DESCRIPTION 1"=""Personal Files" specifies the folder where your files from Lotus 1-2-3, Microsoft Excel, Microsoft Word, Corel Paint and so on are located."
  13. "DESCRIPTION 2"=""Program Data" is used by new applications from Microsoft for hidden but customized files. For example, Internet Explorer stores the Quick Launch bar links there."
  14. "DESCRIPTION 3"=""IE Favorites" specifies the folder where your Internet Links are located (normally used only by Internet Explorer)."
  15. "DESCRIPTION 4"=""IE Downloads" specifies the default folder for downloaded files from the Internet (normally used only by Internet Explorer)."
  16. "AUTHOR"="Xteq Systems"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  19.  
  20.  
  21. sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\"
  22. sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\"
  23. sP_IE="HKCU\Software\Microsoft\Internet Explorer\"
  24. sV_IE_DL="Download Directory"
  25.  
  26. Sub Plugin_Initialize 
  27.  s=RegReadValue(sp1 & "Personal")
  28.  SetUIElement 1,s
  29.  
  30.  s=RegReadValue(sP1 & "AppData")
  31.  SetUIElement 2,s
  32.  
  33.  s=RegReadValue(sP1 & "Favorites")
  34.  SetUIElement 3,s
  35.  
  36.  s=RegReadValue(sP_IE & sV_IE_DL)
  37.  SetUIElement 4,s
  38. End Sub
  39.  
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44.  
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  s=GetUIElement(1)
  48.  Call RegWriteValue(sP1 & "Personal",s,1)
  49.  Call RegWriteValue(sP2 & "Personal",s,1)
  50.  
  51.  s=GetUIElement(2)
  52.  Call RegWriteValue(sP1 & "AppData",s,1)
  53.  Call RegWriteValue(sP2 & "AppData",s,1)
  54.  
  55.  s=GetUIElement(3)
  56.  Call RegWriteValue(sP1 & "Favorites",s,1)
  57.  Call RegWriteValue(sP2 & "Favorites",s,1)
  58.  
  59.  s=GetUIElement(4)
  60.  if Right(s,1)="\" then s=left(s,len(s)-1)
  61.  Call RegWriteValue(sP_IE & sV_IE_DL,s,1)
  62.  
  63.  
  64.  Call Logoff() 'Required because of ActiveDestop and other crap
  65. End Sub
  66.  
  67.  
  68. Sub Plugin_Terminate 
  69. End Sub
  70.  
  71.  
  72.  
  73.